package com.drinks.yiniang.entity.community;

import com.hansen.library.entity.BaseJson;

import java.io.Serializable;
import java.util.List;

/**
 * 社区详情
 *
 * @author han
 * @date 2019/12/10
 */
public class CommunityDetailJson extends BaseJson {

    private CommunityDetailData data;

    public CommunityDetailData getData() {
        return data;
    }

    public void setData(CommunityDetailData data) {
        this.data = data;
    }

    public static class CommunityDetailData {
        private String id;
        private String fans_id;
        //门店id
        private String stores_id;
        private String type;
        private String title;
        //内容(富文本)
        private String content;
        private String like_count;
        private String topic;
        private String brand_id;
        private String username;
        private String avatar;
        private List<CommunityDetailGoods> goods;
        private List<CommunityDetailPic> images;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getFans_id() {
            return fans_id;
        }

        public void setFans_id(String fans_id) {
            this.fans_id = fans_id;
        }

        public String getStores_id() {
            return stores_id;
        }

        public void setStores_id(String stores_id) {
            this.stores_id = stores_id;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getLike_count() {
            return like_count;
        }

        public void setLike_count(String like_count) {
            this.like_count = like_count;
        }

        public String getTopic() {
            return topic;
        }

        public void setTopic(String topic) {
            this.topic = topic;
        }

        public String getBrand_id() {
            return brand_id;
        }

        public void setBrand_id(String brand_id) {
            this.brand_id = brand_id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public List<CommunityDetailGoods> getGoods() {
            return goods;
        }

        public void setGoods(List<CommunityDetailGoods> goods) {
            this.goods = goods;
        }

        public List<CommunityDetailPic> getImages() {
            return images;
        }

        public void setImages(List<CommunityDetailPic> images) {
            this.images = images;
        }
    }

    public static class CommunityDetailGoods implements Serializable {
        private String id;
        private String community_id;
        private String goods_id;
        private String image_id;
        private String width;
        private String height;
        private String x;
        private String y;
        private String goods_name;
        private String recommend_reason;
        private String cover_url;
        //前端动态添加是否选中
        private boolean isChecked;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCommunity_id() {
            return community_id;
        }

        public void setCommunity_id(String community_id) {
            this.community_id = community_id;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getImage_id() {
            return image_id;
        }

        public void setImage_id(String image_id) {
            this.image_id = image_id;
        }

        public String getWidth() {
            return width;
        }

        public void setWidth(String width) {
            this.width = width;
        }

        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public String getX() {
            return x;
        }

        public void setX(String x) {
            this.x = x;
        }

        public String getY() {
            return y;
        }

        public void setY(String y) {
            this.y = y;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getRecommend_reason() {
            return recommend_reason;
        }

        public void setRecommend_reason(String recommend_reason) {
            this.recommend_reason = recommend_reason;
        }

        public String getCover_url() {
            return cover_url;
        }

        public void setCover_url(String cover_url) {
            this.cover_url = cover_url;
        }

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }
    }

    public static class CommunityDetailPic {
        private String id;
        private String img;
        private String original;
        //private String name;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getOriginal() {
            return original;
        }

        public void setOriginal(String original) {
            this.original = original;
        }
    }
}
